﻿$def with (form)

$def get_myscripts():
    <!-- tinyMCE -->
    <script language="javascript" type="text/javascript" src="/jscripts/tiny_mce/tiny_mce.js"></script>
    <script language="javascript" type="text/javascript">
    tinyMCE.init({
    mode : "textareas",
    theme : "advanced",
    theme_advanced_toolbar_location : "top",
    theme_advanced_toolbar_align : "left",
    theme_advanced_toolbar_statusbar_location : "bottom",
    theme_advanced_resizing : true,
    });
    </script>
    <!-- /tinyMCE -->

$var title: myscripts
$var scripts: $get_myscripts()

<div id="content" class="narrowcolumn">
    <p> 恭迎大侠 ($session.username) | <a href="/logout">出门请走这儿</a></p>
    <form action="/add" method="post">
      $if not form.valid: <p>很抱歉，您的作品可能不符合规范，请检查</p>
      $:form.render()
    <input type="submit" name="post_submit" value="收功" />
    </form>
</div>
